Component({
  data: {
    middleShow: false,
    selected: 0,
    color: "#353535",
    selectedColor: "#353535",
    list: [{
      pagePath: "/pages/index/index",
      iconPath: "/image/icon_component.png",
      selectedIconPath: "/image/icon_component_HL.png",
      text: "圈子",
      schoolImg: "",
      scrollTop: false,
      scrollImg: ''
    },
    
    {
      pagePath: "",
      iconPath: "",
      selectedIconPath: "",
      text: ""
    },
    
    {
      pagePath: "/pages/my/index",
      iconPath: "/image/icon_component.png",
      selectedIconPath: "/image/icon_component_HL.png",
      text: "我的"
    }
    ],
    issueList: [
      {
        shake: false,
        text: "发个帖子",
        img: '',
        tag: ["吐槽", "表白", "求助"],
        url: "",
      },
      {
        shake: false,
        text: "有偿求助",
        img: '',
        tag: ["帮助", "帮买", "帮做"],
        url: "",
      },
      {
        shake: false,
        text: "闲置交易",
        img: '',
        tag: ["出闲置", "求购宝贝",],
        url: "",
      },
    ],
    previous: 0,
    TimeArr: []

  },
  attached() {
  },
  methods: {
    clickMiddle() {
      console.log(1)
        wx.navigateTo({
          url: '/pages/reservation/index',
        })
    },
   
    switchTab(e) {
      if (this.data.middleShow) return
      const data = e.currentTarget.dataset
      const url = data.path
      if (data.index == 0 && this.data.list[0].scrollTop) {
        this.scrolleImgFun()
        return
      }
      console.log(url)
      wx.switchTab({ url })
      this.setData({
        selected: data.index,
      })
    },
    
    
  }
})